package edu.chinasoft.handler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Date;

@Controller("typeHandler02")
@RequestMapping("/typehandler02")
public class TypeHandler02 {

    private Logger logger = LoggerFactory.getLogger(TypeHandler02.class);

    @RequestMapping(value = "/method01.do", method = RequestMethod.POST)
    public String method01(Date userdate) {
        logger.info("时间的值为：" + userdate.toLocaleString());

        return "/result/result01";
    }

}
